<?php
    use yii\helpers\Url;
?>
<div class="page-sidebar-wrapper">
    <!-- BEGIN SIDEBAR -->
    <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
    <!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
    <div class="page-sidebar navbar-collapse collapse">
        <!-- BEGIN SIDEBAR MENU -->
        <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->
        <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->
        <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->
        <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
        <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->
        <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->
        <ul class="page-sidebar-menu  page-header-fixed " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" style="padding-top: 20px">
            <!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
            <li class="sidebar-toggler-wrapper hide">
                <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
                <div class="sidebar-toggler"> </div>
                <!-- END SIDEBAR TOGGLER BUTTON -->
            </li>
            <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->
           <?= \common\components\Menu::widget([
                  'items' => [
                      ['label' => '网站设置', 'url' => ['/common/config/edit-all'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-cog ' ],

                      ['label' => '权限管理', 'url' => ['/admin/assignment/','id'=>"超级管理"],'options'=>['class' => 'nav-item'],'icon' => 'icon-folder', 'items' => [
                          ['label' => '路由', 'url' => ['/admin/route/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/admin/assignment/']  ],
                          ['label' => '权限', 'url' => ['/admin/permission/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/admin/assignment/']],
                          ['label' => '角色', 'url' => ['/admin/role/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/admin/assignment/']],
                          ['label' => '规则', 'url' => ['/admin/rule/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/admin/assignment/']],
                          ['label' => '管理员', 'url' => ['/admin/assignment/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/admin/assignment/']],
                      ]],
                      ['label' => '配置管理', 'url' => ['/common/config/'],'options'=>['class' => 'nav-item'],'icon' => 'icon-folder', 'items' => [
                          ['label' => '配置管理', 'url' => ['/common/config/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/common/config/']  ],
                          ['label' => '配置分类', 'url' => ['/common/config-cate/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/common/config/']],

                      ]],
                      ['label' => '系统基础', 'url' => ['/common/config/'],'options'=>['class' => 'nav-item'],'icon' => 'icon-folder', 'items' => [
                          ['label' => '资源文件', 'url' => ['/common/attachment/index'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/common/config/']  ],
                          ['label' => '系统信息', 'url' => ['/common/system/info'],'options'=>['class' => 'nav-item'],'icon' => 'fa fa-list-ul','depend' => ['/common/config/']],

                      ]],

                  ],
               'activateParents' => true,
              ]);
            ?>
        </ul>
        <!-- END SIDEBAR MENU -->
        <!-- END SIDEBAR MENU -->
    </div>
    <!-- END SIDEBAR -->
</div>
